package com.antu.first.bean;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Administrator on 2018/3/3.
 */
@Component
public class Merchant {

    private int mId;//Id

    private String mUsername;//商家账号

    private String mPassword;//商家密码

    private Date mCreateTime;//创建时间

    private Date mLastEditTime;//最后修改时间

    private int mType;//管理员类型

    private boolean isOnline;//是否在线

    private String mPhone;//商家联系电话

    private Hotel hotel;//酒店

    public Merchant() {
    }

    public Merchant(int mId, String mUsername, String mPassword, Date mCreateTime, Date mLastEditTime, int mType, boolean isOnline, String mPhone, Hotel hotel) {

        this.mId = mId;
        this.mUsername = mUsername;
        this.mPassword = mPassword;
        this.mCreateTime = mCreateTime;
        this.mLastEditTime = mLastEditTime;
        this.mType = mType;
        this.isOnline = isOnline;
        this.mPhone = mPhone;
        this.hotel = hotel;
    }

    public int getmId() {

        return mId;
    }

    public void setmId(int mId) {
        this.mId = mId;
    }

    public String getmUsername() {
        return mUsername;
    }

    public void setmUsername(String mUsername) {
        this.mUsername = mUsername;
    }

    public String getmPassword() {
        return mPassword;
    }

    public void setmPassword(String mPassword) {
        this.mPassword = mPassword;
    }

    public Date getmCreateTime() {
        return mCreateTime;
    }

    public void setmCreateTime(Date mCreateTime) {
        this.mCreateTime = mCreateTime;
    }

    public Date getmLastEditTime() {
        return mLastEditTime;
    }

    public void setmLastEditTime(Date mLastEditTime) {
        this.mLastEditTime = mLastEditTime;
    }

    public int getmType() {
        return mType;
    }

    public void setmType(int mType) {
        this.mType = mType;
    }

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean online) {
        isOnline = online;
    }

    public String getmPhone() {
        return mPhone;
    }

    public void setmPhone(String mPhone) {
        this.mPhone = mPhone;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    @Override
    public String toString() {
        return "Merchant{" +
                "mId=" + mId +
                ", mUsername='" + mUsername + '\'' +
                ", mPassword='" + mPassword + '\'' +
                ", mCreateTime=" + mCreateTime +
                ", mLastEditTime=" + mLastEditTime +
                ", mType=" + mType +
                ", isOnline=" + isOnline +
                ", mPhone='" + mPhone + '\'' +
                ", hotel=" + hotel +
                '}';
    }
}
